#include "tcpserver.h"
#include "ui_tcpserver.h"
#include"mytcpserver.h"
#include"dboperate.h"
#include<QHostAddress>
#include<QDebug>

TcpServer::TcpServer(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::TcpServer)
{
    ui->setupUi(this);
    m_strIP  ="127.0.0.1";
    m_usPort =8888;
    dboperate::getInstance().init();
    MyTcpServer::getInstance().listen(QHostAddress(m_strIP),m_usPort);
    qDebug() <<m_strIP;
}

TcpServer::~TcpServer()
{
    delete ui;
}

